package cn.csc.module.product.controller.admin.shopcart.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigInteger;
import java.time.LocalDateTime;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 购物车 Excel 导出 Request VO", description = "参数和 SopCartItemPageReqVO 是一致的")
@Data
public class SopCartItemExportReqVO {

    @ApiModelProperty(value = "店铺ID")
    private BigInteger shopId;

    @ApiModelProperty(value = "产品ID")
    private BigInteger spuId;

    @ApiModelProperty(value = "SkuID")
    private BigInteger skuId;

    @ApiModelProperty(value = "用户ID")
    private BigInteger userId;

    @ApiModelProperty(value = "购物车产品个数")
    private Integer count;

    @ApiModelProperty(value = "售价，加入购物车时的商品价格")
    private BigInteger priceFee;

    @ApiModelProperty(value = "是否已勾选")
    private Byte isChecked;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
